package cn.edu.sspu.www.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.edu.sspu.www.domain.BaseStudent;
import cn.edu.sspu.www.mapper.BaseStudentMapper;
import cn.edu.sspu.www.service.BaseStudentService;

@Service
public class BaseStudentServiceImpl implements BaseStudentService {
	
	@Autowired
	private BaseStudentMapper mapper;

	@Override
	public int addBaseStudent(BaseStudent baseStudent) {
		
		return mapper.addBaseStudent(baseStudent);
	}

	@Override
	public int editBaseStudent(BaseStudent baseStudent) {
		
		return mapper.editBaseStudent(baseStudent);
	}

	@Override
	public int delBaseStudent(Long id) {
		
		return mapper.delBaseStudent(id);
	}

	@Override
	public List<BaseStudent> queryBaseStudentList(BaseStudent queryVo) {
		
		return mapper.queryBaseStudentList(queryVo);
	}

	@Override
	public BaseStudent viewBaseStudent(Long id) {
		
		return mapper.viewBaseStudent(id);
	}

}
